22. Exercise : Add Content Descriptions

L10 36 Content Descriptions SC

Enable Talkback on your device:

In Settings, navigate to System > Accessibility and select Use Service.

In add_gdg_fragment.xml:

  1. Add android:contentDescription="@string/add_gdg" to textViewIntro.


  2. Add android:contentDescription="@string/stage_image_description" to imageView.


  3. Add android:hint="@string/your_name_label" to EditTextName.


  4. Add android:hint="@string/email_label" to EditTextEmail.


  5. Add android:hint="@string/city_label" to EditTextCity.


  6. Add android:hint="@string/country_label" to EditTextCountry.


  7. Add android:hint="@string/region_label" to EditTextRegion.


  8. Add android:contentDescription="@string/motivation" to labelTextWhy.


  9. Add android:hint="@string/enter_motivation" to EditTextWhy.


  10. Add android:contentDescription="@string/submit_button_description".


  11. Run the app again and try talkback.


If you want to start at this step, you can download this exercise from: Step.09-Exercise-Add-Content-Descriptions.

You will find plenty of //TODO comments to help you complete this exercise, and if you get stuck, go back and watch the video again.

Once you’re done, you can check your solution against the solution we’ve provided here: Step.09-Solution-Add-Content-Descriptions, or using this git diff.

Task Description:

Complete the following tasks to add Talkback support to your app.

Task List:

Task Feedback:

Thanks! Is your app talking back to you yet?

Reference documentation